From 9576b3162aabec9c74136bc8245a4f3fde612631 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 9 Jan 2017 12:49:13 +0200 Subject: [PATCH] Check if the "doc --all" tests exit with exit code 0 --- tests/doc.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/doc.rs b/tests/doc.rs index e96eb0624..809c10739 100644 --- a/tests/doc.rs +++ b/tests/doc.rs @@ -643,7 +643,8 @@ fn doc_all_workspace() { // The order in which bar is compiled or documented is not deterministic assert_that(p.cargo_process("doc") .arg("--all"), - execs().with_stderr_contains("[..] Documenting bar v0.1.0 ([..])") + execs().with_status(0) + .with_stderr_contains("[..] Documenting bar v0.1.0 ([..])") .with_stderr_contains("[..] Compiling bar v0.1.0 ([..])") .with_stderr_contains("[..] Documenting foo v0.1.0 ([..])")); } @@ -676,7 +677,8 @@ fn doc_all_virtual_manifest() { // The order in which foo and bar are documented is not guaranteed assert_that(p.cargo_process("doc") .arg("--all"), - execs().with_stderr_contains("[..] Documenting bar v0.1.0 ([..])") + execs().with_status(0) + .with_stderr_contains("[..] Documenting bar v0.1.0 ([..])") .with_stderr_contains("[..] Documenting foo v0.1.0 ([..])")); } @@ -704,6 +706,7 @@ fn doc_all_member_dependency_same_name() { assert_that(p.cargo_process("doc") .arg("--all"), - execs().with_stderr_contains("[..] Updating registry `[..]`") + execs().with_status(0) + .with_stderr_contains("[..] Updating registry `[..]`") .with_stderr_contains("[..] Documenting a v0.1.0 ([..])")); } -- 2.30.2